package com.altocloud.database;

import java.sql.Connection;
import java.sql.DriverManager;

public class DbUtil {

	public Connection getDbConnection(String database)
	{
		Connection connection = null;
		try
		{
			Class.forName("org.postgresql.Driver");
			connection = null;
			connection = DriverManager.getConnection("jdbc:postgresql://localhost:5433/"+database,"postgres", "admin");
		}
		catch(Exception e)
		{
			System.out.println(e);
		}
		
		return connection;
	}
}
